
<form name='openapiForm' method='post' action='index.php?app=openapi&ctl=admin_log_response&act=checkresshow' id="form-abnormal">
    <div class="tableform">
      <span>差异订单:<{$diffOrder|count}></span>
      <span>订单表订单:<{$ordersTable|count}></span>
      <span>接口重复订单:<{$repetOrder|count}></span>
      <span>接口不重复订单<{$orderbns|count}></span>
      <div class="division">
        <table cellpadding="0" cellspacing="0" border="0">
          <{foreach from=$diffOrder item=name key=key}>
              <tr>
                <td><{$name}></td>
              </tr>                    
          <{/foreach}>
 


        </table>
      </div>
    </div>
</form>

<{area inject=".mainFoot"}>
<div class="table-action">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tbody>
      <tr>
        <td><button class="btn btn-primary" id="submit_btn" ><span><span><{t}>确定<{/t}></span></span></button></td>
      </tr>
    </tbody>
  </table>
</div>
<{/area}>
<script>
(function(){
    var _form = $('form-abnormal');//表单ID 
    var btn   = $('submit_btn');//按钮ID
    
    var finder = finderGroup['<{$env.get.finder_id}>'];
    _form.store('target',{
        onComplete:function(){
        },
        onSuccess:function(response){
            var hash_res_obj = JSON.decode(response);
            if (hash_res_obj.success != undefined && hash_res_obj.success != ""){
                try{
                    var _dialogIns = btn.getParent('.dialog').retrieve('instance');
                }catch(e){}

                if(_dialogIns){
                      finder.refresh();
                    _dialogIns.close();
                }
            }
        }
    });

    btn.addEvent('click',function(){
      _form.fireEvent('submit',{stop:$empty});
    });
})();
</script>


